﻿#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Animations;
/// <summary>
/// Animator选择资源项
/// </summary>
public class ESF_SkillAnimatorCollectAsset : AbsESF_EditorCollectAsset
{
    /// <summary>
    /// 控制器
    /// </summary>
    public ESF_SkillAnimatorController aniCtrl { get; private set; }

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="_pathOrGuid">资源路径或guid</param>
    public ESF_SkillAnimatorCollectAsset(string _pathOrGuid) : base(_pathOrGuid)
    {
        var ctrl = (AnimatorController)AssetDatabase.LoadMainAssetAtPath(path);
        aniCtrl = new ESF_SkillAnimatorController(ctrl);
    }
}

#endif
